package com.vgemv.jsutilitysdk.Menu.JsMenuView;

import android.graphics.Color;
import android.view.View;

//组件的所有状态数据.
public class JsMenuViewVm {
    //背景色  recyclerView的背景色. 默认透明. 不包括上下拉刷新的颜色.
    public Integer mColor_background;



    //布局样式.
    //0 代表网格布局
    //1 代表水平线性布局.
    //2 代表竖直线性布局
    public static final int JsMenuViewLayoutStyleGrid = 0;
    public static final int JsMenuViewLayoutStyleHorizontalList = 1;
    public static final int JsMenuViewLayoutStyleVerticalList = 2;
//    public static final int JsMenuViewLayoutStyleGrid = 0;
    public int mi_layoutStyle = JsMenuViewLayoutStyleGrid;

    //如果是网格布局时,需要设置spanCount;
    public int mi_spanCount = 5;


    //点击选择的样式.
    // 0 不选择 1 单选 2 多选
    public static final int JsMenuViewSelectionStyleNone = 0;
    public static final int JsMenuViewSelectionStyleSingle = 1;
    public static final int JsMenuViewSelectionStyleMulti = 2;

    public int mi_selectStyle = JsMenuViewSelectionStyleNone;

    //初始选择项
    public Integer mI_initialSelectedIndex = null;

    //是否启用下拉刷新和上拉加载
    public boolean mb_enableRefreshAndLoadmore = false;
    //上下拉刷新的背景色 显示的是容器的颜色,设置容器的颜色就好了.
    public Integer mI_refreshViewBackgroundColor;


    public int mi_visibility = View.VISIBLE;

    //边框大小
    public int mi_borderWidth = 0;
    //边框颜色
    public int mColor_boerderColor = Color.BLACK;

    public int mi_cornerRadius;
}